home *** CD-ROM | disk | FTP | other *** search
- Path: lilith.uab.es!pollux!is04439
- From: Alberto Otero Garcia <is04439@els.url.es>
- Newsgroups: comp.lang.c
- Subject: Generic lists (data structures)
- Date: Thu, 18 Jan 1996 09:14:50 +0100
- Organization: Universitat Autonoma de Barcelona
- Distribution: inet
- Message-ID: <Pine.HPP.3.91.960118090015.21549A-100000@pollux>
- NNTP-Posting-Host: pollux.url.es
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- X-Sender: is04439@pollux
-
- Hello, I'm in problems and I want someone to help me. Please!!!!
- My question is if someone can send me the code in C to work with generic
- lists (insert, create, delete, etc. functions). I'll explain what is for
- me a generic list 'cos I don't know if this is the correct name in english:
- is a data structure, for working with dinamic memory, in what you have
- your info encadenated. Usually is named with stacks and queues.
- The graphic would be somethig like that:
-
- pointer____
- |
- \/
- ________ _________ _________ _________
- | | | | | | | |
- |______| |_______| |_______| |_______|
- | | | | | | | |
- |______| |_______| |_______| |_______|
- |______|------->|_______|------->|_______|----->|_______|
-
- The problem is that the code must run with any data structure, so you
- have to work with void* and functions*.
-
- I need the code the fast as you can, so if you have got it, send it to me
- now, I'll be glad and I'll give you anything you want.
-
- Thank you very much if you send it.
- (Can you send the answer to the newsgroup and to my e-mail address
- please, it is very important for me?)
-
- Alberto Otero Garcia e-mail: is04439@els.url.es
-